Skip to content

ext/curl: post multiple similarly-named files with curl - #22740

Open
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:curl-post-multi-file
Open

ext/curl: post multiple similarly-named files with curl#22740
Sjord wants to merge 1 commit into
php:masterfrom
Sjord:curl-post-multi-file

Conversation

@Sjord

@Sjord Sjord commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Make it possible to post multiple files with the same name using cURL.
It was already possible to post files, and it was possible to post
multiple strings with the same name. This moves things around to combine
these two features.

Closes php#15859
@Sjord
Sjord force-pushed the curl-post-multi-file branch from c8f8de7 to aece997 Compare July 15, 2026 12:44
@Sjord
Sjord marked this pull request as ready for review July 15, 2026 12:58
@Sjord
Sjord requested a review from adoy as a code owner July 15, 2026 12:58
@Sjord

Sjord commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

@derickr Could you take a look at this? When you made #8292, was there a reason that it didn't work for files, or was this incidental?

@Sjord Sjord changed the title Post multiple similarly-named files with curl ext/curl: post multiple similarly-named files with curl Jul 30, 2026
@Sjord

Sjord commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

@cmb69 could you perhaps review this please?

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mixing part of the refactoring with the behavioural changes makes it hard to follow along.

Could you maybe first split build_mime_structure_from_hash into multiple functions dealing with the different types in a different PR, and then rebase this PR when that one landed?

@Sjord

Sjord commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

I agree that the changes view of this PR is a mess. I moved the inner loop from build_mime_structure_from_hash to its own function. There are hardly any other changes. Splitting this up into multilple pull requests is not going to make things clearer, I'm afraid.

Could you take a look at this PR with white-space changes ignored? I think that makes it easier to see what's going on.

@Sjord
Sjord requested a review from Girgias August 11, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants